<!-- html -->
<template>
  <img class="img1" :src="message">
</template>

<!-- js或ts -->
<script lang="ts">
export default {
  name: 'suspenseTest1Children'
}
</script>

<!-- js或ts -->
<script setup lang="ts">
import axios from 'axios';
//数据
let { data: { message } } = await axios.get('https://dog.ceo/api/breed/pembroke/images/random')
</script>

<!-- 样式 -->
<style scoped></style>